home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9081 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Memory. How is it organised?
  5. Date: 7 Mar 1996 14:56:41 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4hnpj9INN18h@keats.ugrad.cs.ubc.ca>
  8. References: <4hf5gs$1f7@news.mistral.co.uk> <4hf9j8INNko4@keats.ugrad.cs.ubc.ca> <4hipt4$48t@news.mistral.co.uk>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10.  
  11. In article <4hipt4$48t@news.mistral.co.uk>,
  12. Mike Barnard <mikebarnard@mistral.co.uk> wrote:
  13. >Thanks for taking the time to write such a full reply. I've
  14. >read over it briefly and will study it a bit closer during
  15. >the evening. Why isn't such information included in newbie
  16. >tutorials...
  17.  
  18. Because such information would only help assembly language hackers like me
  19. misunderstand the abstract nature of the language, and cause them to repent in
  20. a UseNet newsgroup years later.
  21.  
  22. A C environment can _interpret_ your program, avoiding a translation to machine
  23. code altogether. Function activation records don't have to be stack frames, for
  24. instance.  They can exist as dynamically allocated objects inside an
  25. interpreter. Pointers don't have to be machine addresses; they can be abstract
  26. identifiers that allow an interpreter to reference objects when it is emulating
  27. the program. Do you see what I mean?
  28.  
  29. A knowledge of the internal organization of a C program can be helpful to more
  30. advanced programmers, as long as they remember at all times that the language
  31. has an abstract definition.
  32.  
  33. The language just happens to be conceived in such a way that the structures it
  34. defines map naturally and efficiently onto digital computers that have a
  35. certain kind of architecture.  
  36. -- 
  37.  
  38.